{// 引入标签库 }
<tagLib name="fanwe" />
<include file="Public:header" />
<load href="__TMPL__ThemeFiles/Js/jquery.js" />
<load href="__TMPL__ThemeFiles/Js/tabs.js" />
<load href="__TMPL__ThemeFiles/Js/site.js" />
<load href="__TMPL__ThemeFiles/Js/iColorPicker.js" />
<div id="main" class="main">
<div class="content">
<div class="title">{$Think.lang.EDIT_FRIEND_LINK} [ <a href="{:u($module_name.'/index')}">{$Think.lang.BACK_LIST}</a> ]</div>
<div id="result" class="result none"></div>
<form method='post' id="form" name="form" action="{:u($module_name.'/update')}" enctype="multipart/form-data">
<ul class="conf_btns">
	<li>{$Think.lang.EDIT_FRIEND_LINK}</li>
	
</ul>
<div class="conf_tabs">
<table cellpadding=0 cellspacing=0 class="conf_table dataEdit" >
	<tr>
		<td class="tRight" width="120">{$Think.lang.FRIEND_NAME}：</td>
		<td class="tLeft">
        	<input type="text" name="name" id="name" class="bLeftRequire iColorPicker" rel="name_color" value="{$vo.name}" />            
        </td>
	</tr>
	<tr>
		<td class="tRight" width="120">{$Think.lang.FRIEND_URL}：</td>
		<td class="tLeft"><fanwe:textbox name="url" class="bLeftRequire" /></td>
	</tr>
	<tr>
		<td class="tRight">{$Think.lang.SORT}：</td>
		<td class="tLeft"><input type="text" value="{$vo.sort}" name="sort" /></td>
	</tr>
    <tr>
		<td class="tRight">网站截图：</td>
		<td class="tLeft">
			<input type="file" name="img"  value="{$vo.img}" />
			<if condition="$vo['img'] neq ''">
			<a href="__ROOT__{$vo.img}" target="_blank">查看</a>
			</if>
		</td>
	</tr>
     <tr style="display:none;">
		<td class="tRight">{$Think.lang.FRIEND_WIDTH}：</td>
		<td class="tLeft"><input type="text" name="width" /></td>
	</tr>
     <tr>
		<td class="tRight">{$Think.lang.FRIEND_HEIGHT}：</td>
		<td class="tLeft"><input type="text" name="height" value="{$vo.height}" /></td>
	</tr>
	
</table>
<div style="padding:20px 0 0 130px;">
    <input type="hidden" name="id" value="{$vo.id}" />
	<input type="submit" value="{$Think.lang.SAVE_DATA}" class="button small">
	<input type="reset" class="button small" onclick="resetEditor()" value="{$Think.lang.RESET_DATA}">
</div>
</div>
</form>
</div>
</div>
